
#include <stdio.h>

int print(int *arr, int n)
{
    int i = 0;

    for (i = 0; i < n; i++)
    {
        printf("%d ", arr[i]);
    }

    return 0;
}

int main(int argc, char **argv)
{
    int arr[5] = {1, 2, 4, 5, 7};
    int n = sizeof(arr) / sizeof(arr[0]);

    print(arr, n);

    return 0;
}